<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

<html:errors />

<html:form action="/Add" focus="username" method="post" > 
    <table id="form">
        <tr>
            <td><bean:message key="app.username" />:</td>
            <td><html:text property="username" /></td>
            <td><bean:message key="app.password" />:</td>
            <td><html:text property="password" /></td>
        </tr>
        <tr>
            <td><bean:message key="app.name" />:</td>
            <td><html:text property="name" /></td>
            <td><bean:message key="app.phone" />:</td>
            <td><html:text property="phone" /></td>
        </tr>
        <tr>
            <td><bean:message key="app.email" />:</td>
            <td><html:text property="email" /></td>
            <td><bean:message key="app.department" />:</td>
            <td>

                <html:select property="depid" size="1">
                    <html:option value="1">
                        <bean:message key="app.administration" />
                    </html:option>
                    <html:option value="2">
                        <bean:message key="app.network" />
                    </html:option>
                    <html:option value="3">
                        <bean:message key="app.sales" />
                    </html:option>
                    <html:option value="4">
                        <bean:message key="app.engineering" />
                    </html:option>
                </html:select>

            </td>
        </tr>
        <tr>
            <td><bean:message key="app.role" />:</td>
            <td>

                <html:select property="roleid" size="1">
                    <html:option value="1">
                        <bean:message key="app.manager" />
                    </html:option>
                    <html:option value="2">
                        <bean:message key="app.employe" />
                    </html:option>
                </html:select>

            </td>
            <td colspan="2" align="center">
                <html:submit ><bean:message key="app.submit" /></html:submit>
                <html:cancel ><bean:message key="app.cancel" /></html:cancel>
                <html:reset ><bean:message key="app.reset" /></html:reset>
                </td>
            </tr>
        </table>
    <html:javascript formName="employeForm" />
    <html:hidden property="do" value="addEmploye" />	
</html:form> 